def add_student(students):
    name = input("请输入学生姓名：")
    gender = input("请输入学生性别：")
    phone = input("请输入学生手机号：")
    # 生成学生序号，这里简单用当前学生列表长度加1作为序号
    student_id = len(students) + 1
    student = {"序号": student_id, "姓名": name, "性别": gender, "手机号": phone}
    students.append(student)
    print("添加成功！")

    def delete_student(students):
        if not students:
            print("学生信息表为空，无法删除！")
            return
        student_id = int(input("请输入要删除学生的序号："))
        # 查找要删除的学生
        for i, student in enumerate(students):
            if student["序号"] == student_id:
                students.pop(i)
                print("删除成功！")
                return
        print("未找到序号为{}的学生！".format(student_id))